

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>ceph-volume &mdash; Ceph Documentation</title>
  

  
  <link rel="stylesheet" href="../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../_static/graphviz.css" type="text/css" />
  <link rel="stylesheet" href="../_static/css/custom.css" type="text/css" />

  
  
    <link rel="shortcut icon" href="../_static/favicon.ico"/>
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
        <script src="../_static/jquery.js"></script>
        <script src="../_static/underscore.js"></script>
        <script src="../_static/doctools.js"></script>
    
    <script type="text/javascript" src="../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../genindex/" />
    <link rel="search" title="Search" href="../search/" />
    <link rel="next" title="Overview" href="intro/" />
    <link rel="prev" title="Ceph 基金会" href="../foundation/" /> 
</head>

<body class="wy-body-for-nav">

   
  <header class="top-bar">
    

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../" class="icon icon-home"></a> &raquo;</li>
        
      <li>ceph-volume</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
          
            <a href="../_sources/ceph-volume/index.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
  </header>
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search"  style="background: #eee" >
          

          
            <a href="../">
          

          
            
            <img src="../_static/logo.png" class="logo" alt="Logo"/>
          
          </a>

          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../start/intro/">Ceph 简介</a></li>
<li class="toctree-l1"><a class="reference internal" href="../install/">安装 Ceph</a></li>
<li class="toctree-l1"><a class="reference internal" href="../cephadm/">Cephadm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../rados/">Ceph 存储集群</a></li>
<li class="toctree-l1"><a class="reference internal" href="../cephfs/">Ceph 文件系统</a></li>
<li class="toctree-l1"><a class="reference internal" href="../rbd/">Ceph 块设备</a></li>
<li class="toctree-l1"><a class="reference internal" href="../radosgw/">Ceph 对象网关</a></li>
<li class="toctree-l1"><a class="reference internal" href="../mgr/">Ceph 管理器守护进程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../mgr/dashboard/">Ceph 仪表盘</a></li>
<li class="toctree-l1"><a class="reference internal" href="../api/">API 文档</a></li>
<li class="toctree-l1"><a class="reference internal" href="../architecture/">体系结构</a></li>
<li class="toctree-l1"><a class="reference internal" href="../dev/developer_guide/">开发者指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../dev/internals/">Ceph 内幕</a></li>
<li class="toctree-l1"><a class="reference internal" href="../governance/">项目管理</a></li>
<li class="toctree-l1"><a class="reference internal" href="../foundation/">Ceph 基金会</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">ceph-volume</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#id2">迁移</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#id3">全新部署</a></li>
<li class="toctree-l3"><a class="reference internal" href="#osd">已有 OSD 怎么办</a><ul>
<li class="toctree-l4"><a class="reference internal" href="intro/">Overview</a></li>
<li class="toctree-l4"><a class="reference internal" href="intro/#replacing-ceph-disk">Replacing <code class="docutils literal notranslate"><span class="pre">ceph-disk</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="intro/#gpt-partitions-are-simple">GPT partitions are simple?</a></li>
<li class="toctree-l4"><a class="reference internal" href="intro/#modularity">Modularity</a></li>
<li class="toctree-l4"><a class="reference internal" href="intro/#ceph-volume-lvm"><code class="docutils literal notranslate"><span class="pre">ceph-volume</span> <span class="pre">lvm</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="intro/#lvm-performance-penalty">LVM performance penalty</a></li>
<li class="toctree-l4"><a class="reference internal" href="systemd/">systemd</a></li>
<li class="toctree-l4"><a class="reference internal" href="inventory/"><code class="docutils literal notranslate"><span class="pre">inventory</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="drive-group/"><code class="docutils literal notranslate"><span class="pre">drive-group</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/"><code class="docutils literal notranslate"><span class="pre">lvm</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/activate/"><code class="docutils literal notranslate"><span class="pre">activate</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/batch/"><code class="docutils literal notranslate"><span class="pre">batch</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/batch/#ceph-volume-lvm-batch-report">报表</a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/batch/#sizing">Sizing</a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/batch/#idempotency-and-disk-replacements">Idempotency and disk replacements</a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/encryption/">加密</a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/prepare/"><code class="docutils literal notranslate"><span class="pre">prepare</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/create/"><code class="docutils literal notranslate"><span class="pre">create</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/scan/">scan</a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/systemd/">systemd</a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/list/"><code class="docutils literal notranslate"><span class="pre">list</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/zap/"><code class="docutils literal notranslate"><span class="pre">zap</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/migrate/"><code class="docutils literal notranslate"><span class="pre">migrate</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/newdb/"><code class="docutils literal notranslate"><span class="pre">new-db</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="lvm/newwal/"><code class="docutils literal notranslate"><span class="pre">new-wal</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="simple/"><code class="docutils literal notranslate"><span class="pre">simple</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="simple/activate/"><code class="docutils literal notranslate"><span class="pre">activate</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="simple/scan/"><code class="docutils literal notranslate"><span class="pre">scan</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="simple/systemd/">systemd</a></li>
<li class="toctree-l4"><a class="reference internal" href="zfs/"><code class="docutils literal notranslate"><span class="pre">zfs</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="zfs/inventory/"><code class="docutils literal notranslate"><span class="pre">inventory</span></code></a></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../releases/general/">Ceph 版本（总目录）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../releases/">Ceph 版本（索引）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../security/">Security</a></li>
<li class="toctree-l1"><a class="reference internal" href="../glossary/">Ceph 术语</a></li>
<li class="toctree-l1"><a class="reference internal" href="../jaegertracing/">Tracing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../translation_cn/">中文版翻译资源</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../">Ceph</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
<div id="dev-warning" class="admonition note">
  <p class="first admonition-title">Notice</p>
  <p class="last">This document is for a development version of Ceph.</p>
</div>
  <div id="docubetter" align="right" style="padding: 5px; font-weight: bold;">
    <a href="https://pad.ceph.com/p/Report_Documentation_Bugs">Report a Documentation Bug</a>
  </div>

  
  <div class="section" id="ceph-volume">
<span id="id1"></span><h1>ceph-volume<a class="headerlink" href="#ceph-volume" title="Permalink to this headline">¶</a></h1>
<p>通过不同的设备技术（如 lvm 或物理硬盘）部署 OSD ，用可替换的工具
（ <a class="reference internal" href="lvm/"><span class="doc">lvm</span></a> 它自己就被当成一个插件了），并按照可预见、
健壮的方法来准备、激活、并启动 OSD 。</p>
<p><a class="reference internal" href="intro/#ceph-volume-overview"><span class="std std-ref">概览</span></a> |
<a class="reference internal" href="../dev/ceph-volume/plugins/#ceph-volume-plugins"><span class="std std-ref">插件手册</span></a> |</p>
<p><strong>命令行子命令</strong></p>
<p>当前已经支持 <code class="docutils literal notranslate"><span class="pre">lvm</span></code> ，和普通硬盘（分区格式为 GPT ），
它可能是用 <code class="docutils literal notranslate"><span class="pre">ceph-disk</span></code> 部署的。</p>
<p><code class="docutils literal notranslate"><span class="pre">zfs</span></code> 在 FreeBSD 集群上可用。</p>
<ul class="simple">
<li><p><a class="reference internal" href="lvm/#ceph-volume-lvm"><span class="std std-ref">lvm</span></a></p></li>
<li><p><a class="reference internal" href="simple/#ceph-volume-simple"><span class="std std-ref">simple</span></a></p></li>
<li><p><a class="reference internal" href="zfs/#ceph-volume-zfs"><span class="std std-ref">zfs</span></a></p></li>
</ul>
<p><strong>节点清单</strong></p>
<p><a class="reference internal" href="inventory/#ceph-volume-inventory"><span class="std std-ref">inventory</span></a> 子命令可查看一个节点上物理磁盘库的信息和元数据。</p>
<div class="section" id="id2">
<h2>迁移<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
<p>Ceph 从 13.0.0 版起， <code class="docutils literal notranslate"><span class="pre">ceph-disk</span></code> 已弃用，弃用警告消息将链接到本页。我们强烈建议用户转向 <code class="docutils literal notranslate"><span class="pre">ceph-volume</span></code> ，迁移有两种途径：</p>
<ol class="arabic simple">
<li><p>保留用 <code class="docutils literal notranslate"><span class="pre">ceph-disk</span></code> 部署的各 OSD: <a class="reference internal" href="simple/#ceph-volume-simple"><span class="std std-ref">simple</span></a>
命令提供了一条途径，可以在 <code class="docutils literal notranslate"><span class="pre">ceph-disk</span></code> 被禁用时接手管理；</p></li>
<li><p>用 <code class="docutils literal notranslate"><span class="pre">ceph-volume</span></code> 重新部署已有的各 OSD: 这在
<a class="reference internal" href="../rados/operations/add-or-rm-osds/#rados-replacing-an-osd"><span class="std std-ref">替换一个 OSD</span></a> 里有详细说明。</p></li>
</ol>
<p><code class="docutils literal notranslate"><span class="pre">ceph-disk</span></code> 被去除的原因请看
<a class="reference internal" href="intro/#ceph-disk-replaced"><span class="std std-ref">ceph-disk 为何被取代了？</span></a> 一节。</p>
<div class="section" id="id3">
<h3>全新部署<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h3>
<p>对于全新部署，我们推荐用 <a class="reference internal" href="lvm/#ceph-volume-lvm"><span class="std std-ref">lvm</span></a> ，它可以用逻辑卷作数据 OSD 、或者把设备配置成一个最小化/全新的逻辑卷。</p>
</div>
<div class="section" id="osd">
<h3>已有 OSD 怎么办<a class="headerlink" href="#osd" title="Permalink to this headline">¶</a></h3>
<p>如果集群内已经有了用 <code class="docutils literal notranslate"><span class="pre">ceph-disk</span></code> 开通的 OSD ， <code class="docutils literal notranslate"><span class="pre">ceph-volume</span></code> 可以用
<a class="reference internal" href="simple/#ceph-volume-simple"><span class="std std-ref">simple</span></a> 接管它们。扫描完数据设备或 OSD 目录后，
就会完全禁用 <code class="docutils literal notranslate"><span class="pre">ceph-disk</span></code> 。加密已完全支持。</p>
<div class="toctree-wrapper compound">
</div>
</div>
</div>
</div>



           </div>
           
          </div>
          <footer>
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
        <a href="intro/" class="btn btn-neutral float-right" title="Overview" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
        <a href="../foundation/" class="btn btn-neutral float-left" title="Ceph 基金会" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>
        &#169; Copyright 2016, Ceph authors and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0).

    </p>
  </div> 

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>